Sadness is a Minecraft simulation discord bot with an additional random command set completely unrelated to Minecraft.
To use the bot, use the package manager pip to install required packages by running:
pip3 install discord.py
pip3 install requests
pip install discord.py
pip install requests
Note: Python 3.x must be installed on your machine.
Note: If you are using a Windows based machine, download and install git from here to be able to clone this repository.
-
Clone the repository by running the following in in CMD or terminal on windows/ (macOS or linux) respectively:
git clone https://github.com/hamza-al/discord-bot.git
-
Create a file called users.json in the discord-bot directory
-
Add the following starter code to users.json:
{"users":[]}
-
Follow the steps here to add the bot to discord.
-
Add the token obtained in step 3 in the bot.py file in place of the
tokenNew
variable -
Right click on the main channel of the server and copy the channel ID
-
Add the ID obtained in step 5 in place of the
channelIdOld
variable
To make the urban dictionary functionality work, follow the instructions here to obtain the api key required, and place than in plac eof the urbankey
variable
To make the gif finding functionality work, follow the instructions here to obtain the api key required, and place than in plac eof the apikeygif
variable
To run the bot, use the following commands in the discord-bot directory:
python3 bot.py
python bot.py
Note: Python 3.x must be installed on your machine.
Once the bot is online: Use the ">help" to get the list of commands supported by the bot. Any command must be preceeded by the ">" symbol.
Current bot commands are :
balance Shows user's balance
bank Deposits a given amount of money into a user's hidden stash of ca
calc Solves for a variable 'x' in basic linear mathematical equations
coinflip Bets a given amount of money on a simulated coin toss
gif Sends the top Tenor GIF search result of the inputed text
help Shows this message
inv Shows user inventory
mine Mines a given amount of blocks
ping Prints pong back to the channel.
prices Displays the prices of sellable items
rich Displays order of wealth on the server
sell Sells a given amount of items
stash Shows user's hidden stash of money
steal Robs the mentioned users balance
Donate Donates a set amount of money to another user
store Sends a given amount of items to the user's vault
unvault Returns given amount of vaulted items to the user's inventory
urban Shows definition of a word in the urban dictionary
vault Shows user's vault
wpm Quick built in typing speed tester
league Retrieves information about any specified League of Legends champion
wordle Simulated a wordle
help Displays available commands.
xo TicTacToe on discord